package com.jiazhong.cloud.seata.stock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiazhong.cloud.seata.stock.bean.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StockMapper extends BaseMapper<Stock> {
    @Update("update stock set number=number-#{number} where gid=#{gid}")
    int updateStock(Stock stock);
}
